module two {
	export class EWMItem extends eui.ItemRenderer implements eui.UIComponent {
		public constructor() {
			super();
		}
		public txt_name: eui.Label;
		public icon: eui.Image;

		data: { url: string, name: string }
		protected dataChanged(): void {
			super.dataChanged();

			if (!this.data.name) {
				return;
			}

			this.txt_name.text = this.data.name;
			this.icon.source = this.data.url;
		}
	}
}